﻿using System;
using System.Collections.Generic;
using System.Text;
using Oracle.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;

namespace OpenAuth.Repository
{
    public class OracleDBContext:DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseOracle(@"Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=200.200.200.9)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=JHEMRV6N)));Persist Security Info=True;User ID=GSBX;Password=GSBX", b => b.UseOracleSQLCompatibility("11"));
        }
        //public DbSet<BT_MJInfo> MJInfo { get; set; }
    }
}
